<template>
<div>
  <ul>
    <li>新闻</li>
    <li>内容</li>
  </ul>
  <ul>
    <li>
      {{news.bt}}
    </li>
    <li>
      {{news.text}}
    </li>
  </ul>


</div>
</template>

<script>
export default {
  name: "news_xq",
  data(){
    return{
      news:{},
      id:this.$route.query.id,
      userid :localStorage.getItem('userid')
    }
  },
  methods:{
    show_new(){
      this.$axios.get("users/News_API/?id="+this.id+'&userid='+this.userid)
        .then(i=>{
          this.news = i.data.list
          if(i.data.code==10013){
            alert("三次机会已用完")
          }
        })
    },
  },
  mounted() {
    this.show_new()
  }
}
</script>

<style scoped>

</style>
